//当前封装的请求方法
import base from './base'

//二次封装axios
import axios from '../utils/request'

//定义方法
export default {
    //获取热门城市
    getHotCity(){
        return axios.get(base.hotcity)
    },
    //搜索框搜索城市
    getSearchCity(params){ 
      return axios.get(base.search,{
        params
      })
    },
    //获取今日信息
    getTodyInfo(){
      return axios.get(base.todyInfo)
    },

     //获取首页商品
    getHomeShop(params){
      return axios.get(base.homeShop,{params})
    },

    //获取热门游记
    getHotTravel(params){
      return axios.get(base.hotTravel,{params})
    },

    //目的地搜索接口
    getDestSearch(params){
      return axios.get(base.destSearch,{params})
    },
}

export function demo() {
  console.log('demo');
}